package com.niu.wm.service;

import java.util.List;

import com.niu.wm.model.ProductCategory;
import com.niu.wm.model.User;
import com.alibaba.fastjson.JSONArray;

public interface CategoryService {

	void refrechCache();
	
	ProductCategory load(Long id);
	
	ProductCategory loadByCode(String code);
	
	int add(User user, ProductCategory category);
    
    int delete(User user, Long id);

    int update(User user, ProductCategory dict);
    
    List<ProductCategory> list();
}
